-
Notifications
You must be signed in to change notification settings - Fork 455
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: Fixed cleanup of control plane logging lab #709
Conversation
✅ Deploy Preview for eks-workshop ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
I think the logging logic probably needs to be more complex than this. If we want to be able to implement something that tells the user when a command failed and which log file there will need to be something that catches the error since |
This will capture (in the log) and display both stdout and stderr. Since we have set -e, in the observability I added the || true since we know the error is possible. I didn't change the logic, except we have that log file of the last action that trigged the problem the issue will see (but it still could be caused by a previous call) |
Oh yeah, forgot its tee. What I mean by the logic is that in the script that curls reset-environment, runs and it and uses tee ideally we would catch any error that happens in the reset-environment run and message the user to refer to appropriate log file by exact path. For example
|
Have a look at the latest PR, this should be pretty similar to your suggestions |
hi team, what are we missing to continue merging this pull request? happy to help! |
I've removed the logging feature from this PR for now so we can get the basic fix merged. |
What this PR does / why we need it: Ignore cleanup error in observability labs, in case logs were never enabled.
Which issue(s) this PR fixes:
Fixes #696
Quality checks
make test module="observability"
and it was successfulBy submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.